import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 科室预算申报

// 查询当前流程任务详情-通过当前流程任务id
export function yssbQueryJobByJobId(params){
    return axios({
        url: assessCheckApi.yssbQueryJobByJobId,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 流程监控
export function bmyssbFlowJkPage(params){
    return axios({
        url: assessCheckApi.bmyssbFlowJkPage,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 内控-部门预算申报-编辑
export function bmyssbEdit(params){
    return axios({
        url: assessCheckApi.bmyssbEdit,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

// 发起部门预算申报流程
export function bmyssbInitBzFlow(data){
    return axios({
        url: assessCheckApi.bmyssbInitBzFlow,
        data:{...data},
        method: "post",
        url_2:'outside',
    });
}

// 内控-部门预算申报保存接口
export const bmyssbSaveFlow = function(data) {
    return axios({
        url: assessCheckApi.bmyssbSaveFlow,
        data: data,
        method: "post",
        url_2:'outside',
    });
}

// 提交流程
export const bmyssbSubmitFlow = function(data) {
    return axios({
        url: assessCheckApi.bmyssbSubmitFlow,
        data: data,
        method: "post",
        url_2:'outside',
    });
}

// 新增项目依据
export function bmyssbAddXmyj(params){
    return axios({
        url: assessCheckApi.bmyssbAddXmyj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查看项目依据
export function bmyssbGetXmyjList(params){
    return axios({
        url: assessCheckApi.bmyssbGetXmyjList,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

//删除项目依据
export function bmyssbDeXmyj(params){
    return axios({
      url: assessCheckApi.bmyssbDeXmyj,
      method:'get' ,
      params:{...params},
      url_2:'outside'
    })
}

// 编辑项目依据
export function bmyssbEditXmyj(params){
    return axios({
        url: assessCheckApi.bmyssbEditXmyj,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

// 新增项目内容
export function bmyssbAddXmnr(params){
    return axios({
        url: assessCheckApi.bmyssbAddXmnr,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查看项目内容
export function bmyssbGetXmnrList(params){
    return axios({
        url: assessCheckApi.bmyssbGetXmnrList,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

//删除项目内容
export function bmyssbDeXmnr(params){
    return axios({
      url: assessCheckApi.bmyssbDeXmnr,
      method:'get' ,
      params:{...params},
      url_2:'outside'
    })
}

// 编辑项目内容
export function bmyssbEditXmnr(params){
    return axios({
        url: assessCheckApi.bmyssbEditXmnr,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

//查看预算申报绩效
export function bmyssbListjxsb(params){
    return axios({
      url: assessCheckApi.bmyssbListjxsb,
      method:'get' ,
      params:{...params},
      url_2:'outside'
    })
}

// 新增预算申报绩效
export const bmyssbAddjxsb = function(data) {
    return axios({
        url: assessCheckApi.bmyssbAddjxsb,
        data: data,
        method: "post",
        url_2:'outside',
    });
}

//删除预算申报绩效
export function bmyssbDeletejxsb(params){
    return axios({
        url: assessCheckApi.bmyssbDeletejxsb,
        method:'delete' ,
        params:{...params},
        url_2:'outside',
    })
}

// 编辑预算申报绩效
export function bmyssbEditjxsb(params){
    return axios({
        url: assessCheckApi.bmyssbEditjxsb,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

//查看预算申报绩效-绩效指标
export function bmyssbListjxzb(params){
    return axios({
        url: assessCheckApi.bmyssbListjxzb,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 新增预算申报绩效-绩效指标
export const bmyssbAddjxzb = function(data) {
    return axios({
        url: assessCheckApi.bmyssbAddjxzb,
        data: data,
        method: "post",
        url_2:'outside',
    });
}

// 编辑预算申报绩效-绩效指标
export function bmyssbEditjxzb(params){
    return axios({
        url: assessCheckApi.bmyssbEditjxzb,
        method:'put' ,
        data:{...params},
        url_2:'outside'
    })
}

//删除预算申报绩效-绩效指标
export function bmyssbDeletejxzb(params){
    return axios({
        url: assessCheckApi.bmyssbDeletejxzb,
        method:'delete' ,
        params:{...params},
        url_2:'outside',
    })
}

// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
    return axios({
        url: assessCheckApi.queryJobByJobId,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
        url: assessCheckApi.returnUpperzdyFlowJob,
        method:'post',
        data:{...data},
        url_2:'outside',
    })
}


export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}

// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}
